const contest = window.storage.getItem('paper/contest')
const state = {
  selectedPapers: [],
  // 当前创建的考试
  contest: contest
}
const mutations = {
  selectPapers (state, papers) {
    state.selectedPapers = papers
  },
  setContest (state, contest) {
    console.log(JSON.stringify(contest))
    state.contest = contest
    window.storage.setItem('paper/contest', contest)
    console.log(JSON.stringify(contest))
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
